package com.example.tutorials;

import com.example.component.Window.HomeWindow;
import com.example.login.ILoginService;
import com.example.service.ServiceManager;
import com.vaadin.Application;

@SuppressWarnings("serial")
public class TutorialsApplication extends Application {
	// @Override
	public void init() {
		HomeWindow main = new HomeWindow("Welcome to FunFusion Content Management System");
		setMainWindow(main);
		main.initWindow();
		
	}

	@Override
	public void close() {
		// TODO Auto-generated method stub
		ILoginService iLoginService = (ILoginService)ServiceManager.getInstance().getService(ILoginService.LOGINSERVICE);
		iLoginService.logout(this, true); // Logout Automatically on Timeout of Application
		super.close();
	}
	
	
}
